home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Answers 1995 January
/
PC Answers Issue 3 January 1995.iso
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1994-05-02
|
18KB
|
508 lines
@echo off
ansi > nul
echo
H
echo ╔═════════════════════════════════════════════════════════╗
echo ║ ║
echo ║
We are fast approaching the Eleventh Hour! This
║
echo ║
batch program will install the files for the demo
║
echo ║
of The Eleventh Hour. It will run best on a
║
echo ║
300 K/sec. or faster CD-ROM drive. It has not yet
║
echo ║
been tuned for the slower (150 K/sec.) CD-ROM drives.
║
echo ║
The final product WILL support the slower CD-ROMs.
║
echo ║
Additionally, this interim batch install
║
echo ║
program uses slightly less than 100 bytes of
║
echo ║
environment variables while performing the
║
echo ║
installation. If the installation has any problems,
║
echo ║
you may need to temporarily increase the size of
║
echo ║
your enviornment.
║
echo ║
║
echo ║
And now, on to
The Eleventh Hour!
║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════╝
what C "14H
Do you want to copy the files at this time? Y/N -->
"YN
if %WHAT%==N echo o
if %WHAT%==N goto END
echo es
rem This is the begining of the file copy section
WHAT C "14H
Enter the drive letter for your CD-ROM --> 58H"ABCDEFGHIJKLMNOPQRSTUVWXYZ
echo :
SET T11C=%WHAT%
ECHO 14HEnter the letter of the HARD DRIVE that The Eleventh Hour
WHAT C "14Hwill run from --> "CDEFGHIJKLMNOPQRSTUVWXYZ
ECHO :
SET T11H=%WHAT%
echo
H
echo ╔═════════════════════════════════════════════════════╗
echo ║ ║
echo ║
Files will now be copied from your %T11C%: drive
║
echo ║
(CD-ROM) to your %T11H%: drive (Hard drive.) They
║
echo ║
Will be put in the \ID\11HDEMO directory (which
║
echo ║
will be created if it does not already exist.)
║
echo ║
║
echo ╚═════════════════════════════════════════════════════╝
what C "20H
Do you wish to proceed? Y/N -->
"YN
if %WHAT%==N echo o
if %WHAT%==N goto end
echo es
echo
H
echo ╔═════════════════════════════════════════════╗
echo ║ ║
echo ║
Copying Files
║
echo ║
║
echo ║
(This may take a minute or so.)
║
echo ║ ║
echo ╚═════════════════════════════════════════════╝
%T11H%:
verify on
cd \
md id >nul
cd \id
md 11hdemo >nul
cd 11hdemo
copy %T11C%:\11H\INSTALL\*.*
echo @echo off > install.bat
echo set T11C=%T11C%>>install.bat
echo set T11H=%T11H%>>install.bat
copy install.bat+inst.txt
cls
rem play background screen
echo
echo ;>temp.ini
echo ;.INI file for The Eleventh Hour>>temp.ini
echo ;>>temp.ini
echo ;(C) Copyright 1993,1994 Trilobyte, Inc.>>temp.ini
echo ;>>temp.ini
echo [main]>>temp.ini
echo DMABufferSize=16384>>temp.ini
echo TicksPerSecond=300>>temp.ini
echo VideoCard=VESA compatible video card>>temp.ini
echo svga=on>>temp.ini
echo ProgDir=%T11H%:\ID\11HDEMO\>>temp.ini
echo DataDir=%T11C%:\11H\>>temp.ini
type sound.scr
what c "Enter the letter for your sound card -->"ABCDEFGHIJX
echo .
SET T11P=%WHAT%
if %T11P%==X set T11PP=A
if %T11P%==X set T11PI=A
if %T11P%==X set T11PD=A
if %T11P%==X GOTO GETMIDI
echo
type port.scr
what C "Enter the letter of your choice -->"ABCDEFGHIJKLMN
echo .
set T11PP=%WHAT%
echo
type irq.scr
what C "Enter the letter of your choice -->"ABCDEFGHIJK
echo .
set T11PI=%WHAT%
echo
type dma.scr
what C "Enter the letter of your choice -->"ABCDEF
echo .
set T11PD=%WHAT%
:GETMIDI
echo
type music.scr
what c "Enter the letter for your sound card -->"ABCDEFGHIJKLMX
echo .
SET T11M=%WHAT%
if %T11M%==A echo midi=SoundBlaster>>temp.ini
if %T11M%==B echo midi=SoundBlasterASP16>>temp.ini
if %T11M%==C echo midi=SoundBlasterPro1>>temp.ini
if %T11M%==D echo midi=SoundBlasterPro2>>temp.ini
if %T11M%==E echo midi=ProAudioSpectrum>>temp.ini
if %T11M%==F echo midi=ProAudioSpectrum>>temp.ini
if %T11M%==G echo midi=ProAudioSpectrum>>temp.ini
if %T11M%==H echo midi=Sensation>>temp.ini
if %T11M%==I echo midi=Aria>>temp.ini
if %T11M%==J echo midi=AdlibGold>>temp.ini
if %T11M%==K echo midi=Adlib>>temp.ini
if %T11M%==L echo midi=GeneralMidi>>temp.ini
if %T11M%==M echo midi=MT32>>temp.ini
if %T11M%==X echo midi=None>>temp.ini
if %T11P%==A echo pcm=SoundBlaster>>temp.ini
if %T11P%==B echo pcm=SoundBlasterASP16>>temp.ini
if %T11P%==C echo pcm=SoundBlasterPro1>>temp.ini
if %T11P%==D echo pcm=SoundBlasterPro2>>temp.ini
if %T11P%==E echo pcm=ProAudioSpectrum>>temp.ini
if %T11P%==F echo pcm=ProAudioSpectrum>>temp.ini
if %T11P%==G echo pcm=ProAudioSpectrum>>temp.ini
if %T11P%==H echo pcm=Sensation>>temp.ini
if %T11P%==I echo pcm=Aria>>temp.ini
if %T11P%==J echo pcm=AdlibGold>>temp.ini
if %T11P%==X echo pcm=None>>temp.ini
if %T11M%==X set T11MP=A
if %T11M%==X set T11MI=A
if %T11M%==X set T11MD=A
if %T11M%==X GOTO AFTERMIDI
IF %T11M%==%T11P% GOTO AFTERMIDI
echo
type port.scr
what C "Enter the letter of your choice -->"ABCDEFGHIJKLMN
set T11MP=%WHAT%
echo
type irq.scr
what C "Enter the letter of your choice -->"ABCDEFGHIJK
set T11MI=%WHAT%
echo
type dma.scr
what C "Enter the letter of your choice -->"ABCDEF
set T11MD=%WHAT%
:AFTERMIDI
copy temp.ini+cr.txt >nul
if %T11P%==A echo [SoundBlaster]>>temp.ini
if %T11P%==B echo [SoundBlasterASP16]>>temp.ini
if %T11P%==C echo [SoundBlasterPro1]>>temp.ini
if %T11P%==D echo [SoundBlasterPro2]>>temp.ini
if %T11P%==E echo [ProAudioSpectrum]>>temp.ini
if %T11P%==F echo [ProAudioSpectrum]>>temp.ini
if %T11P%==G echo [ProAudioSpectrum]>>temp.ini
if %T11P%==H echo [Sensation]>>temp.ini
if %T11P%==I echo [Aria]>>temp.ini
if %T11P%==J echo [AdlibGold]>>temp.ini
if %T11P%==X echo [None]>>temp.ini
if %T11PP%==A echo port=210>>temp.ini
if %T11PP%==B echo port=220>>temp.ini
if %T11PP%==C echo port=230>>temp.ini
if %T11PP%==D echo port=240>>temp.ini
if %T11PP%==E echo port=250>>temp.ini
if %T11PP%==F echo port=260>>temp.ini
if %T11PP%==G echo port=280>>temp.ini
if %T11PP%==H echo port=290>>temp.ini
if %T11PP%==I echo port=300>>temp.ini
if %T11PP%==J echo port=320>>temp.ini
if %T11PP%==K echo port=330>>temp.ini
if %T11PP%==L echo port=332>>temp.ini
if %T11PP%==M echo port=334>>temp.ini
if %T11PP%==N echo port=336>>temp.ini
if %T11PI%==A echo irq=2>>temp.ini
if %T11PI%==B echo irq=3>>temp.ini
if %T11PI%==C echo irq=4>>temp.ini
if %T11PI%==D echo irq=5>>temp.ini
if %T11PI%==E echo irq=6>>temp.ini
if %T11PI%==F echo irq=7>>temp.ini
if %T11PI%==G echo irq=9>>temp.ini
if %T11PI%==H echo irq=10>>temp.ini
if %T11PI%==I echo irq=11>>temp.ini
if %T11PI%==J echo irq=12>>temp.ini
if %T11PI%==K echo irq=15>>temp.ini
if %T11PD%==A echo dma=0>>temp.ini
if %T11PD%==B echo dma=1>>temp.ini
if %T11PD%==C echo dma=3>>temp.ini
if %T11PD%==D echo dma=5>>temp.ini
if %T11PD%==E echo dma=6>>temp.ini
if %T11PD%==F echo dma=7>>temp.ini
if %T11P%==A echo pcm=sbdig.adv>>temp.ini
if %T11P%==B echo pcm=sbpdig.adv>>temp.ini
if %T11P%==C echo pcm=sbpdig.adv>>temp.ini
if %T11P%==D echo pcm=sbpdig.adv>>temp.ini
if %T11P%==E echo pcm=pasdig.adv>>temp.ini
if %T11P%==F echo pcm=pasdig.adv>>temp.ini
if %T11P%==G echo pcm=pasdig.adv>>temp.ini
if %T11P%==H echo pcm=tandy.drv>>temp.ini
if %T11P%==I echo pcm=ariadig.adv>>temp.ini
if %T11P%==J echo pcm=algdig.adv>>temp.ini
if %T11P%==%T11M% GOTO SETXMI
copy temp.ini+cr.txt >nul
if %T11M%==A echo [SoundBlaster]>>temp.ini
if %T11M%==B echo [SoundBlasterASP16]>>temp.ini
if %T11M%==C echo [SoundBlasterPro1]>>temp.ini
if %T11M%==D echo [SoundBlasterPro2]>>temp.ini
if %T11M%==E echo [ProAudioSpectrum]>>temp.ini
if %T11M%==F echo [ProAudioSpectrum]>>temp.ini
if %T11M%==G echo [ProAudioSpectrum]>>temp.ini
if %T11M%==H echo [Sensation]>>temp.ini
if %T11M%==M echo [Aria]>>temp.ini
if %T11M%==J echo [AdlibGold]>>temp.ini
if %T11M%==I echo [Adlib]>>temp.ini
if %T11M%==K echo [GeneralMidi]>>temp.ini
if %T11M%==L echo [MT32]>>temp.ini
if %T11M%==X echo [None]>>temp.ini
if %T11MP%==A echo port=210>>temp.ini
if %T11MP%==B echo port=220>>temp.ini
if %T11MP%==C echo port=230>>temp.ini
if %T11MP%==D echo port=240>>temp.ini
if %T11MP%==E echo port=250>>temp.ini
if %T11MP%==F echo port=260>>temp.ini
if %T11MP%==G echo port=280>>temp.ini
if %T11MP%==H echo port=290>>temp.ini
if %T11MP%==I echo port=300>>temp.ini
if %T11MP%==J echo port=320>>temp.ini
if %T11MP%==K echo port=330>>temp.ini
if %T11MP%==L echo port=332>>temp.ini
if %T11MP%==M echo port=334>>temp.ini
if %T11MP%==N echo port=336>>temp.ini
if %T11MI%==A echo irq=2>>temp.ini
if %T11MI%==B echo irq=3>>temp.ini
if %T11MI%==C echo irq=4>>temp.ini
if %T11MI%==D echo irq=5>>temp.ini
if %T11MI%==E echo irq=6>>temp.ini
if %T11MI%==F echo irq=7>>temp.ini
if %T11MI%==G echo irq=9>>temp.ini
if %T11MI%==H echo irq=10>>temp.ini
if %T11MI%==I echo irq=11>>temp.ini
if %T11MI%==J echo irq=12>>temp.ini
if %T11MI%==K echo irq=15>>temp.ini
if %T11MD%==A echo dma=0>>temp.ini
if %T11MD%==B echo dma=1>>temp.ini
if %T11MD%==C echo dma=3>>temp.ini
if %T11MD%==D echo dma=5>>temp.ini
if %T11MD%==E echo dma=6>>temp.ini
if %T11MD%==F echo dma=7>>temp.ini
:SETXMI
if %T11M%==A echo xmi=sbfm.adv>>temp.ini
if %T11M%==B echo xmi=sbp2fm.adv>>temp.ini
if %T11M%==C echo xmi=sbp1fm.adv>>temp.ini
if %T11M%==D echo xmi=sbp2fm.adv>>temp.ini
if %T11M%==E echo xmi=pasopl.adv>>temp.ini
if %T11M%==F echo xmi=pasopl.adv>>temp.ini
if %T11M%==G echo xmi=pasfm.adv>>temp.ini
if %T11M%==H echo xmi=adlib.adv>>temp.ini
if %T11M%==I echo xmi=ariaxmid.adv>>temp.ini
if %T11M%==J echo xmi=adlibg.adv>>temp.ini
if %T11M%==K echo xmi=adlib.adv>>temp.ini
if %T11M%==L echo xmi=mt32mpu.adv>>temp.ini
if %T11M%==M echo xmi=mt32mpu.adv>>temp.ini
copy temp.ini+cr.txt >nul
echo
H
echo ╔═════════════════════════════════════════════════════════╗
echo ║ ║
echo ║
The following choices have been made and will be
║
echo ║
used to configure The Eleventh Hour:
║
echo ║
║
echo ║
Sound Card for voices:
║
echo ║
║
echo ║
I/O Port Address: IRQ: DMA:
║
echo ║
║
echo ║
║
echo ║
Sound Card for music:
║
echo ║
║
echo ║
I/O Port Address: IRQ: DMA:
║
echo ║
║
echo ║
║
echo ║
(If these choices are acceptible, then they will
║
echo ║
be written into the GROOVIE.INI file.)
║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════╝
if %T11P%==A echo 0H Sound Blaster or compatible
if %T11P%==B echo 0H Sound Blaster ASP / 16
if %T11P%==C echo 0H Sound Blaster Pro 1
if %T11P%==D echo 0H Sound Blaster Pro 2
if %T11P%==E echo 0H Pro Audio Studio 16
if %T11P%==F echo 0H Pro Audio Spectrum Plus /16
if %T11P%==G echo 0H Pro Audio Spectrum
if %T11P%==H echo 0H Tandy Sensation
if %T11P%==I echo 0H Aria
if %T11P%==J echo 0H Adlib Gold
if %T11P%==X echo 0H None
if %T11P%==X goto AFTERPCMS
if %T11PP%==A echo 3H 210H
if %T11PP%==B echo 3H 220H
if %T11PP%==C echo 3H 230H
if %T11PP%==D echo 3H 240H
if %T11PP%==E echo 3H 250H
if %T11PP%==F echo 3H 260H
if %T11PP%==G echo 3H 280H
if %T11PP%==H echo 3H 290H
if %T11PP%==I echo 3H 300H
if %T11PP%==J echo 3H 320H
if %T11PP%==K echo 3H 330H
if %T11PP%==L echo 3H 332H
if %T11PP%==M echo 3H 334H
if %T11PP%==N echo 3H 336H
if %T11PI%==A echo 6H 2
if %T11PI%==B echo 6H 3
if %T11PI%==C echo 6H 4
if %T11PI%==D echo 6H 5
if %T11PI%==E echo 6H 6
if %T11PI%==F echo 6H 7
if %T11PI%==G echo 6H 9
if %T11PI%==H echo 6H 10
if %T11PI%==I echo 6H 11
if %T11PI%==J echo 6H 12
if %T11PI%==K echo 6H 15
if %T11PD%==A echo 9H 0
if %T11PD%==B echo 9H 1
if %T11PD%==C echo 9H 3
if %T11PD%==D echo 9H 5
if %T11PD%==E echo 9H 6
if %T11PD%==F echo 9H 7
:AFTERPCMS
if %T11M%==X echo 40H None
if %T11M%==X goto AFTMID
if %T11M%==%T11P% echo 40H Same as above
if %T11M%==%T11P% goto AFTMID
if %T11M%==A echo 40H Sound Blaster or compatible
if %T11M%==B echo 40H Sound Blaster ASP / 16
if %T11M%==C echo 40H Sound Blaster Pro 1
if %T11M%==D echo 40H Sound Blaster Pro 2
if %T11M%==E echo 40H Pro Audio Studio 16
if %T11M%==F echo 40H Pro Audio Spectrum Plus /16
if %T11M%==G echo 40H Pro Audio Spectrum
if %T11M%==H echo 40H Tandy Sensation
if %T11M%==I echo 40H Aria
if %T11M%==J echo 40H Adlib Gold
if %T11M%==K echo 40H Adlib
if %T11M%==L echo 40H General Midi
if %T11M%==M echo 40H Roland MT-32 or LAPC/1
if %T11MP%==A echo 33H 210H
if %T11MP%==B echo 33H 220H
if %T11MP%==C echo 33H 230H
if %T11MP%==D echo 33H 240H
if %T11MP%==E echo 33H 250H
if %T11MP%==F echo 33H 260H
if %T11MP%==G echo 33H 280H
if %T11MP%==H echo 33H 290H
if %T11MP%==I echo 33H 300H
if %T11MP%==J echo 33H 320H
if %T11MP%==K echo 33H 330H
if %T11MP%==L echo 33H 332H
if %T11MP%==M echo 33H 334H
if %T11MP%==N echo 33H 336H
if %T11MI%==A echo 46H 2
if %T11MI%==B echo 46H 3
if %T11MI%==C echo 46H 4
if %T11MI%==D echo 46H 5
if %T11MI%==E echo 46H 6
if %T11MI%==F echo 46H 7
if %T11MI%==G echo 46H 9
if %T11MI%==H echo 46H 10
if %T11MI%==I echo 46H 11
if %T11MI%==J echo 46H 12
if %T11MI%==K echo 46H 15
if %T11MD%==A echo 59H 0
if %T11MD%==B echo 59H 1
if %T11MD%==C echo 59H 3
if %T11MD%==D echo 59H 5
if %T11MD%==E echo 59H 6
if %T11MD%==F echo 59H 7
:AFTMID
what C "3HDo you wish to keep the above configuration? Y / N --> "NY
if %WHAT%==N echo o
if %WHAT%==N GOTO END
echo es
rem this part of the program saves the last 4 versions of groovie.ini. If a previous copy of groovie.ini is
rem in this directory, it will be renamed GROOVIE.001. If a copy of GROOVIE.001 already existed,
rem then prior to rennaming the previous version of groovie.ini to groovie.001, groovie.001 will
rem be renamed to groovie.002. and so on. so that the oldest of the four files will be named groovie.003, and
rem the newest will be named GROOVIE.INI.
rem if you wish to keep more than 3 of the previous copies of GROOVIE.INI, you can UNREMARK one or
rem more of the following lines
rem if exist groovie.007 copy groovie.007 groovie.008
rem if exist groovie.006 copy groovie.006 groovie.007
rem if exist groovie.005 copy groovie.005 groovie.006
rem if exist groovie.004 copy groovie.004 groovie.005
rem if exist groovie.003 copy groovie.003 groovie.004
if exist groovie.002 copy groovie.002 groovie.003
if exist groovie.001 copy groovie.001 groovie.002
if exist groovie.ini copy groovie.ini groovie.001
copy temp.ini groovie.ini
Echo The eleventh hour is configured and ready to play.
echo Type
DEMO (ENTER)
to begin
The Eleventh Hour!
:end
REM CLEANUP
set T11H=
set T11C=
set T11P=
set T11PP=
set T11PI=
set T11PD=
set T11M=
set T11MP=
set T11MI=
set T11MD=
set WHAT=